// 渲染进程脚本
const btn = document.getElementById('btn');
const btn2 = document.getElementById('btn2');
const input = document.getElementById('input');
const btn3 = document.getElementById('btn3');
btn.addEventListener('click', () => {
  alert('点击了');
  console.log(myAPI.versions);
});

btn2.addEventListener('click', () => {
  const content = input.value;
  myAPI.saveFile(content);
});

btn3.addEventListener('click', async () => {
  const content = await myAPI.readFile();

  alert(content);
});

